package com.yld.scott.ch08;

public class CalImpl implements Cal {

	@Override
	public int add(int... x) {
		
		//? 多个?
		int sum =0;
		for(int index=0; index<x.length;index++){
			sum+=index;
		}
		
		return sum;
	}

	@Override
	public int sub(int x, int y) {
		return x-y;
	}

}
